/**
 * fulihui.com Inc.
 * Copyright (c) 2015-2017 All Rights Reserved.
 */
package com.fulihui.usercore.core.repository;

import com.fulihui.usercore.dal.dataobj.WechatUnionidHelpDOExample;
import com.fulihui.usercore.dto.WechatUserDTO;

import java.util.List;

/**
 * 用户授权信息辅助（unionid）仓库
 * @author: zhangyingjie
 * @version: v 0.1 2017年10月24日 15:29  zhangyingjie Exp $
 */
public interface WechatUnionidHelpRepository {
    /**
     * 根据unionid 查询辅助表，查询出userid，然后再根据userid查询授权信息
     * @param example
     * @return
     */
    List<WechatUserDTO> query(WechatUnionidHelpDOExample example);

    /**
     *
     * @param dto
     */
    void create(WechatUserDTO dto);
}
